package org.adream.account.dao;

import java.util.List;
import org.adream.account.entity.ResourceEntity;
import org.apache.ibatis.annotations.Param;

@BaseMybatisDao
public interface ResourceDao {
	
	int addResource(ResourceEntity resource);

	int deleteResource(ResourceEntity resource);

	int updateResource(ResourceEntity resource);

	List<ResourceEntity> queryResourcesByDr(@Param("dr") int dr);

	ResourceEntity queryResourceByResId(@Param("resId") String resId);
	
	ResourceEntity queryResourceByResName(@Param("resName") String resName);
	
	ResourceEntity queryResourceByDrAndResId(@Param("dr") int dr,@Param("resId")String resId);
	
	List<ResourceEntity> queryResByDrAndLikeResName(@Param("dr") int dr,@Param("resName") String resName);

	List<ResourceEntity> queryResourceByResIds(@Param("resIds")String[] resIds,@Param("type")String type);
}